#include<bits/stdc++.h>
using namespace std;

int fac(int arr[],int x)
{
	int left=0;
	int right=3;
	while(1)
	{
		int mid=(left + right) / 2;
		if(arr[mid]>x) right=mid;
		else if(arr[mid]<x) left=mid;
		else if(arr[mid]==x)
		{
			return 1;
			break;
		}
	}
}



int main()
{
	int flag=1;
	int arr[4] = {{1,2,4,5},
                    {6,7,8,9},
                    {10,11,12,13},
                    {14,15,16,17}};
	int x=0;cin>>x;
	
	for(int i=0;i<=16;++i)
	{
		if(fac(arr[i]))
		{
			cout<<"TES";
			break;
		}
	}
	if(!fac(arr[i])) cout<<"NO";
	return 
 } 
